package com.joecy.remote;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name= "spring-cloud-provider")
public interface HelloRemote {

    /**
     * 该抽象方法的注解、访问路径、方法签名要和提供服务的方法完全一致
     * @param name
     * @return
     */
    @RequestMapping(value = "/hello/{name}")
    String hello(@RequestParam(value = "name") String name);


}
